using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace CMS.Domain.Entity
{
    /// <summary>
    /// 博文表
    /// </summary>
    public class Blog : Base.BaseEntity
    {

        /// <summary>
        /// 文章id
        /// </summary>
        /// <value></value>
        public Guid BlogId { get; set; }

        /// <summary>
        /// 博文标题
        /// </summary>
        /// <value></value>
        public string BlogTitle { get; set; } = null!;

        /// <summary>
        /// 预览内容
        /// </summary>
        /// <value></value>

        [Column(TypeName = "text")]
        public string BlogContent { get; set; } = null!;

        /// <summary>
        /// 博文类型
        /// </summary>
        /// <value></value>
        public Guid CateId { get; set; }

        /// <summary>
        /// 作者id
        /// </summary>
        /// <value></value>
        public Guid AuthorId { get; set; }

        /// <summary>
        /// 作者头像
        /// </summary>
        /// <value></value>
        public Guid AuthorAvatar { get; set; }

        // 发布日期 BlogTime  dateTime
        // public DateTime BlogTime{get;set;}暂时不用
    }
}